<template>
  <!-- 购物车路由 -->
  <div class="shopping-cart">
    <div class="container">
      <div class="f1">
        <div>
          <!-- 面包屑导航 -->
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }"
              >个人中心</el-breadcrumb-item
            >
            <el-breadcrumb-item>我的购物车</el-breadcrumb-item>
          </el-breadcrumb>
        </div>
        <div>
          <el-steps :active="1" align-center process-status="wait">
            <el-step title="提交代购单"></el-step>
            <el-step title="支付商品费用"></el-step>
            <el-step title="ikun代购"></el-step>
            <el-step title="提交运单"></el-step>
            <el-step title="确认收货"></el-step>
          </el-steps>
        </div>
      </div>
      <div class="f2">
        <div>
          <img src="/panda.png" />
        </div>
        <div>
          您还没有提交代购商品.&emsp;<router-link to="/purchase"
            >立即填写代购单&gt;</router-link
          >
        </div>
        <div>
          <!-- 读取登录状态, 显示按钮 -->
          <router-link to="/login" v-if="!$store.state.login_state"
            >登录</router-link
          >
          <router-link to="/">随便逛逛</router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  mounted () {
    // 点击后页面到顶部
     window.scrollTo(0,0)
  },
};
</script>

<style lang="scss" scoped>
.shopping-cart {
  background-color: #fafafa;

  .container {
    width: 1200px;
    margin: 0 auto;

    > .f1 {
      height: 100px;
      display: flex;
      justify-content: space-between;
      align-items: center;

      > div:first-child {
        width: 400px;
      }

      > div:last-child {
        width: 700px;
      }
    }

    > .f2 {
      height: 400px;
      width: 100%;
      border: 1px solid #cccccc;
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      > div:first-child {
        width: 100px;
        background-color: #f1f1f1;
        border-radius: 50%;
        margin-bottom: 40px;

        > img {
          display: block;
          width: 100%;
        }
      }

      > div:nth-child(2) {
        font-weight: bold;
        margin-bottom: 30px;

        > a {
          color: #3b86cd;
        }
      }

      > div:last-child {
        display: flex;
        width: 270px;
        height: 45px;
        justify-content: space-evenly;

        > a {
          width: 115px;
          height: 100%;
          color: #fff;
          background-color: #ff6e6e;
          border-radius: 50px;
          text-align: center;
          line-height: 45px;
          cursor: pointer;
          box-sizing: border-box;

          &:last-child {
            background-color: #fff;
            border: 1px solid #ff6e6e;
            color: #ff6e6e;
          }
        }
      }
    }
  }
}
::v-deep .el-breadcrumb__inner.is-link:hover {
  color: #000;
}
::v-deep .el-breadcrumb {
  font-size: 16px;
}
</style>